<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<style type="text/css">
		#logoInfo {
			text-align: left;
			margin-left: 20px;
			content:'';
			clear:both;
			display:table;
			width:100%;
		}
		#logoInfo .title{
			float:left;
			display:block;
			margin:0 0 0 20px;
			}
		#logoInfo img{
			float:left;
			display:block;
			margin-top:20px;
		}
		.right{
			float:right;
			margin-right:20px;
			display:block;
		}
		span{
			color: white;line-height:80px;
		}
	</style>
	<script type="text/javascript" src="resources/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript">
		function loginOut(){
			window.parent.location.href = 'login.jsp';
		}
		
		//显示系统时间
		function showCurrentDate()  
		{  
	        var today;  
	        today = new Date();  
	        timeString = today.toLocaleString();  
	        document.getElementById("currentDate").innerHTML = timeString;  
	        setTimeout("showCurrentDate();", 1000);  
		}  
		
		$(document).ready(function(){ 
			showCurrentDate();
		}) 
		
	</script>
</head>

<body style="height: 100px;background-image: url('resources/images/back.png')">
	
	<div id = 'logoInfo'>
		<img src="resources/images/logo.png">
		<span class="title">后台管理系统</span>
		<span class="right" onclick="loginOut()" title="点击" style="cursor: pointer;">登出</span>
		<span class="right" id='currentDate'></span>
	</div>

</body>
</html>
